package com.liaoyifan.core.exception;

import com.liaoyifan.core.enums.AuthCodeEnum;
import java.io.Serial;
import lombok.Getter;

@Getter
public class AuthException extends CoreException {

    @Serial private static final long serialVersionUID = 1L;

    public AuthException(AuthCodeEnum e) {
        super(e.getCode(), e.getMessage());
    }

    public AuthException(AuthCodeEnum e, Throwable cause) {
        super(e.getCode(), e.getMessage(), cause);
    }
}
